btle - Rust Bluetooth Low Energy Driver
Cross-platform Bluetooth Low Energy library for Rust. Supports Central, Peripheral, Broadcaster and Observer GAP roles. Also supports custom device drivers to enable platform support for custom platforms (embedded, etc).
Very much WIP.
Supported Platforms so far:
- Linux (BlueZ)
- HCI
- USB (using
libusb
) - Proxy
- Windows 10 / UWP
- Windows 7 (must use
libusb
drivers) - macOS
- iOS
- Android
Any platforms missings drivers should still be able to compile, just without any built in way to talk to the BLE controller.
Supported GAP Roles so far:
- Observer (Receiver Advertisements)
- Broadcaster (Send Advertisements)
- (WIP) Central (Initiate GATT Connection)
- (WIP) Peripheral (GATT Connectable)
WIP Example (API may change later):
pub async